<!--
   CC.NET SideBar Gadget for Windows Vista 
   (C) Simone Chiaretta, 2007
   http://codeclimber.net.nz

   This project is licensed under the new BSD license.
   See the License.txt file for more information.
-->

<html>
<head>
    <script src="js/WsProxy.js" type="text/javascript"></script>
    <script src="js/entities.js" type="text/javascript"></script>
    <script src="js/tabber.js" type="text/javascript"></script>
    <script src="js/settings.js" type="text/javascript"></script>
    <script src="js/gadgetSettings.js" type="text/javascript"></script>
    <link rel="stylesheet" href="css/tabs.css" TYPE="text/css">
    <link rel="stylesheet" href="css/settings.css" TYPE="text/css">
    
<script type="text/javascript">


System.Gadget.onSettingsClosing = GadgetSettings.SettingsClosing;	


document.write('<style type="text/css">.tabber{display:none;}<\/style>');

function startTabber()
{
   var tabberArgs = {};
   tabberAutomatic(tabberArgs);
}
</script>

</head>
<body onload="GadgetSettings.init(),startTabber();">

<div id="errorPanel">

		<div class="row" id="errorMessageDiv">
			<span class="label" id="errorMessage"></span>
		</div>
       <div class="row">
       <input type="button" class="button" id="closeErrorMessageBtn" value="Cancel" onclick="GadgetSettings.clearError();" style="float:right;"/>
   	 </div> 

</div>

<div id="errorPanelContainer">

</div>

<div id="modalPanel">

       <div class="row">
          <span class="label">Dashboard url:</span>
          <span class="formw"><input type="text" id="srvUrl" /> <input type="button" class="button" id="loadProjects" value="Get" onclick="GadgetSettings.loadProjects();"/></span>
       </div>

   	   <div id="newProjectListDiv" class="row">
   	      <span class="formw">
   	         	 <select id="projectsFromServer" multiple="multiple" size="5">
               </select>
   	      </span>
   	   </div>

       <div class="row">
       <input type="button" class="button" id="addProjectsBtn" value="Add Projects" onclick="GadgetSettings.addProjects();"/>
       <input type="button" class="button" id="cancelAddProject" value="Cancel" onclick="GadgetSettings.closeAddProjectDiv();"/>
   	 </div> 

</div>

<div id="modalPanelContainer">

</div>

<div class="tabber">
   <div class="tabbertab">
   <h2>Projects</h2>

   	   <div id="projectListDiv" class="row">
   	      <span class="label">Projects:</span>
   	      <span class="formw" style="float:left">
   	         	 <select id="projects" size="10">
               </select>
   	      </span>
   	      <div style="float:right">
   	      <br /><br /><br />
   	      <img src="images/up_off.png" onclick="GadgetSettings.moveProjectUp();" onmouseover="this.src='images/up_on.png';" onmouseout="this.src='images/up_off.png';"/><br />
   	      <img src="images/down_off.png" onclick="GadgetSettings.moveProjectDown();" onmouseover="this.src='images/down_on.png';" onmouseout="this.src='images/down_off.png';"/>
            </div>
   	   </div>
   	   
   	 <div class="row">
       <input type="button" class="button" id="addProject" value="Add..." onclick="GadgetSettings.openAddProjectDiv();"/>
       <input type="button" class="button" id="removeProject" value="Remove" onclick="GadgetSettings.removeSelectedProject();"/>
   	 </div> 

   </div>

     <div class="tabbertab">
	  <h2>Options</h2>
	  
        <div class="row">
   	      <span class="label">Display Mode:</span>
   	      <span class="formw">
               <select id="displayMode">
                  <option value="0">All projects</option>
                  <option value="1">Only failing projects</option>
               </select>
   	      </span>
   	   </div>
	  
   	   <div class="row">
   	      <span class="label">Check interval [sec]:</span>
   	      <span class="formw"><input type="text" id="srvInterval" /></span>
   	      <span class="hint">A value higher than 30sec is recommended to avoid putting too much load on the server.</span>
   	   </div>

   	   <div class="row">
   	      <span class="label">Automatic Scrolling:</span>
   	      <span class="formw">
   	         <select id="autoscroll" onchange="GadgetSettings.enableAutoScrollInterval();">
                  <option value="disabled">Disabled</option>
                  <option value="enabled">Enabled</option>
               </select>
            </span>
   	   </div>
   	   
   	   <div class="row">
   	      <span class="label">Automatic Scrolling  [sec]:</span>
   	      <span class="formw"><input type="text" id="scrollInterval" /></span>
   	   </div>

     </div>


     <div class="tabbertab">
	  <h2>About</h2>
	  <div style="margin-top:10px;color: #00704a;">
	   <img src="images/logo.png" style="float:left;" />
      <br />Copyright Simone Chiaretta (c) 2007<br />
      <a href="http://codeclimber.net.nz" style="color: #00704a">http://codeclimber.net.nz</a>
           </div>
      <div style="width:auto; height:177px; margin:3px; overflow:auto; clear:both; border:1px solid #aaa;">
<b>New BSD License</b><br />
Copyright (c) 2007, Simone Chiaretta<br />
<br />
All rights reserved.<br />
<br />
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:<br />
<ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of CCNET Monitor nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</div>


</div>

</body>
</html>


